import { createRouter, createWebHistory } from 'vue-router'
import Index from './views/Index.vue'
import Login from './views/Login.vue'
import Register from './views/Register.vue'
import Asset from './views/Asset.vue'
import AssetUser from './views/AssetUser.vue'
import ArticleType from './views/ArticleType.vue'
import AssetQueryCategory from './views/AssetQueryCategory.vue'
import AssetQueryName from './views/AssetQueryName.vue'
import AssetQueryOrg from './views/AssetQueryOrg.vue'
import AssetQueryLabel from './views/AssetQueryLabel.vue'
import AssetDetail from './views/AssetDetail.vue'
import UserInfo from './views/UserInfo.vue'
import Organization from "@/views/Organization.vue";
import QueryOrgName from "@/views/QueryOrgName.vue";
import QueryFatherOrg from "@/views/QueryFatherOrg.vue";
import Task from "@/views/Task.vue";
import QueryWord from "@/views/QueryWord.vue";
import QueryStatus from "@/views/QueryStatus.vue";
import Action from "@/views/Action.vue";
import MyTask from "@/views/MyTask.vue";
import VulnerabilityScan from "@/views/VulnerabilityScan.vue";
import ExploitTask from "@/views/ExploitTask.vue";
import LateralMovement from "@/views/LateralMovement.vue";
import TaskDetail from "@/views/TaskDetail.vue";


const routes = [   
    {path: '/',    name: 'Index',    component: Index},
   {
      path: '/user/login',
      name: 'login',
     component: Login
   },
   {
      path: '/user/Register',
     name: 'Register',
      component: Register
   },
  {
    path:'/asset',
    name: 'Asset',
    component: Asset
  },
    {
        path:'/assetUser',
        name: 'AssetUser',
        component: AssetUser
    },
      {
        path: '/articleType',
        name: 'ArticleType',
        component: ArticleType
      },
      {
        path: '/asset/:id',
        name: 'AssetDetail',
        component: AssetDetail
      },
        {
        path: '/asset/queryName',
        name: 'AssetQueryName',
        component: AssetQueryName
        },
    {
        path: '/asset/queryCategory',
        name: 'AssetQueryCategory',
        component: AssetQueryCategory
    },
    {
        path: '/asset/queryLabel',
        name: 'AssetQueryLabel',
        component: AssetQueryLabel
    },
    {
        path: '/asset/queryOrg',
        name: 'AssetQueryOrg',
        component: AssetQueryOrg
    },
    {
        path: '/asset/queryName',
        name: 'AssetQueryName',
        component: AssetQueryName
    },


      {
        path: '/UserInfo/:username',
        name: 'UserInfo',
        component: UserInfo
        },
    {
        path:'/organization',
        name: 'Organization',
        component: Organization
    },
    {
        path:'/organization/queryOrgName',
        name: 'QueryOrgName',
        component: QueryOrgName
    },
    {
        path:'/organization/queryFatherOrg',
        name: 'QueryFatherOrg',
        component: QueryFatherOrg
    },
    {
        path:'/task',
        name: 'Task',
        component: Task
    },
    {
        path: '/task/:id',
        name: 'TaskDetail',
        component: TaskDetail
    },
    {
        path:'/task/queryWord',
        name:'QueryWord',
        component:QueryWord
    },
    {
        path:'/task/queryStatus',
        name:'QueryStatus',
        component:QueryStatus
    },
    {
        path:'/task/action',
        name:'Action',
        component:Action
    },
    {
        path:'/myTask',
        name:'MyTask',
        component:MyTask
    },
    {
        path:'/vulnerabilityScan',
        name:'VulnerabilityScan',
        component:VulnerabilityScan
    },
    {
        path:'/exploitTask',
        name:'ExploitTask',
        component:ExploitTask
    },
    {
        path:'/lateralMovement',
        name:'LateralMovement',
        component:LateralMovement
    },
  ]


  const router = createRouter({   
    history: createWebHistory(),
    routes,                  // `routes: routes` 的缩写
  })
export default  router
